//
// Created by szcho on 2023/4/23.
//

#ifndef BASE_ANIMAL_H
#define BASE_ANIMAL_H


class Animal {
public:
    //父类的虚析构或者纯析构
    virtual ~ Animal()=0;
    int age;
    virtual void sayMself();
};


#endif //BASE_ANIMAL_H
